<template>
  <div>
    <el-form :model="formdata">
      <el-form-item label="选择作品" label-width="10%">
        <el-select
          size="12"
          v-model="formdata.selectData"
          placeholder=""
          style="width: 100%"
        >
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          ></el-option>
        </el-select>
      </el-form-item>
      <el-row>
        <el-col :span="12">
          <el-form-item label="读者昵称" label-width="18%">
            <el-input v-model="formdata.selectData" placeholder=""></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="打赏时间" label-width="18%">
            <el-input v-model="formdata.selectData" placeholder=""></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div>
      <div class="itemList">
        <div class="headerContent">
          <div class="headerImg"><img src="ds" alt="" /></div>
          <div>
            <div>用户名称</div>
            <div>打赏了《作品名称》</div>
            <div>这里是道具数量和名称</div>
          </div>
        </div>
        <div class="itemTimeList">
          <div>2020-20-06</div>
          <div>300喵币</div>
        </div>
      </div>
    </div>
    <div class="pageContent">
      <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400"
    >
    </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      formdata: {},
      selectData: "",
      options: [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
        {
          value: "选项3",
          label: "蚵仔煎",
        },
        {
          value: "选项4",
          label: "龙须面",
        },
        {
          value: "选项5",
          label: "北京烤鸭",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.headerContent{display: flex;}
.headerImg img{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-right: 10px;
}
.pageContent{
  text-align: right;
  margin-top: 20px;
}
.itemList {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  padding: 10px;
}
.itemTimeList {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
</style>
